<?php


namespace Part06_DecorationMode\Code3;

class ConcreteDecoratorA extends Decorator
{
    // 区别于B，是A特有的属性
    private $name;

    public function Operation()
    {
        parent::Operation();
        $this->name = "张三";
        echo "具体装饰对象A的操作\n";
        echo "A类独有的属性：" . $this->name . "\n";
    }
}